<div class="container">
    <div class="card">
        <div class="card-header">
            <h3>
                <?php if ($note['id']): ?>
                    Update note <b><?php echo $note['name'] ?></b>
                <?php else: ?>
                    Create new note
                <?php endif ?>
            </h3>
        </div>
        <div class="card-body">

            <form method="POST" enctype="multipart/form-data"
                  action="">
                <div class="form-group">
                    <label>Name</label>
                    <input name="name" value="<?php echo $note['name'] ?>"
                           class="form-control">
                </div>
                <div class="form-group">
                    <label>Notes</label>
                    <textarea name="value"
                           class="form-control">  <?php echo $note['value'] ?></textarea>
                </div>

                <button class="btn btn-success">Submit</button>
            </form>
        </div>
    </div>
</div>
